﻿using Wulong.Phone.Dianping.Constants;
using Wulong.Phone.Dianping.i18n;

namespace Wulong.Phone.Dianping.Models
{
    public class GroupOn
    {
        private static readonly string BaseUrl = Constants.CommonConstants.GroupOnPage;
        public string Desc { get; set; }
        private string _link;
        public string Link 
        { 
            get { return BaseUrl + _link; } 
            set { _link = value; }
        }

        public string ImageUrl { get; set; }
        public string Price { get; set; }
        public string OriginalPrice { get; set; }
        public string CountDown { get; set; }
        public string ItemsSold { get; set; }

        public string ItemsSoldDesc
        {
            get
            {
                return string.Format(AppResources.ItemsSold, ItemsSold);
            }
        }
    }
}
